package com.example.mardan_demo1.service;;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import mapper.YpInfoMapper;
import pojo.yp.YpInfo;
import com.example.mardan_demo1.service;.YpInfoService;
@Service
public class YpInfoServiceImpl implements YpInfoService{

    @Autowired
    private YpInfoMapper ypInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return ypInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(YpInfo record) {
        return ypInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(YpInfo record) {
        return ypInfoMapper.insertSelective(record);
    }

    @Override
    public YpInfo selectByPrimaryKey(Integer id) {
        return ypInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(YpInfo record) {
        return ypInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(YpInfo record) {
        return ypInfoMapper.updateByPrimaryKey(record);
    }

}
